﻿using Docker.DotNet.Models;
using Serilog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CodeCity.K8S.Service
{
    public class CreateImageProgress : IProgress<JSONMessage>
    {

        public void Report(JSONMessage value)
        {
            Log.Logger?.Information(value.ProgressMessage);
            Console.WriteLine(value.Status);
            Console.WriteLine(value.ErrorMessage);
            Console.WriteLine(value.ProgressMessage);
        }
    }
}
